package com.sxhalo.manage.map;

/**
 * SysRoleModulesId entity. @author MyEclipse Persistence Tools
 */

public class SysRoleModulesId implements java.io.Serializable {

	// Fields

	private SysRoles sysRoles;
	private SysModules sysModules;
	private SysOperation sysOperation;

	// Constructors

	/** default constructor */
	public SysRoleModulesId() {
	}

	/** full constructor */
	public SysRoleModulesId(SysRoles sysRoles, SysModules sysModules,
			SysOperation sysOperation) {
		this.sysRoles = sysRoles;
		this.sysModules = sysModules;
		this.sysOperation = sysOperation;
	}

	// Property accessors

	public SysRoles getSysRoles() {
		return this.sysRoles;
	}

	public void setSysRoles(SysRoles sysRoles) {
		this.sysRoles = sysRoles;
	}

	public SysModules getSysModules() {
		return this.sysModules;
	}

	public void setSysModules(SysModules sysModules) {
		this.sysModules = sysModules;
	}

	public SysOperation getSysOperation() {
		return this.sysOperation;
	}

	public void setSysOperation(SysOperation sysOperation) {
		this.sysOperation = sysOperation;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof SysRoleModulesId))
			return false;
		SysRoleModulesId castOther = (SysRoleModulesId) other;

		return ((this.getSysRoles() == castOther.getSysRoles()) || (this
				.getSysRoles() != null && castOther.getSysRoles() != null && this
				.getSysRoles().equals(castOther.getSysRoles())))
				&& ((this.getSysModules() == castOther.getSysModules()) || (this
						.getSysModules() != null
						&& castOther.getSysModules() != null && this
						.getSysModules().equals(castOther.getSysModules())))
				&& ((this.getSysOperation() == castOther.getSysOperation()) || (this
						.getSysOperation() != null
						&& castOther.getSysOperation() != null && this
						.getSysOperation().equals(castOther.getSysOperation())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getSysRoles() == null ? 0 : this.getSysRoles().hashCode());
		result = 37
				* result
				+ (getSysModules() == null ? 0 : this.getSysModules()
						.hashCode());
		result = 37
				* result
				+ (getSysOperation() == null ? 0 : this.getSysOperation()
						.hashCode());
		return result;
	}

}